package yl.hs.bmipfull.pojo.material;

import lombok.Data;
import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 陈昊
 * @apiNote 实体类
 * @since 2023年06月19日 10时39分22秒
 */
@Data
@DBTable(disName = "原材领用记录", mapCode = "outbound_collecting_record")
public class OutboundCollectingRecordEntity extends BaseEntity {

    /**
     *
     */
    @Nullable
    private Integer id;
    /**
     *
     */
    @DBField(disName = "原材领用记录编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "YCLY")
    private String sn;
    /**
     * 仓库名称
     */
    private String warehouseName;
    /**
     * 领用仓库SN
     */
    private String warehouseSn;
    /**
     * 原材名称
     */
    private String materialName;
    /**
     * 领用原材SN
     */
    private String materialSn;
    /**
     * 领用数量(吨)
     */
    private BigDecimal quantity;
    /**
     * 使用人
     */
    private String userName;
    /**
     * 使用人SN
     */
    private String userSn;
    /**
     * 领用绑定任务SN
     */
    private String taskSn;
    /**
     * 创建人SN
     */
    private String createdBy;
    /**
     * 创建时间
     */
    private Date createdOn;

    private int state;

    private String remark;
    /**
     * 班组
     */
    private String teams;
}